package cc.comac.mom.util;

public class ParamUtils {
	
	public static String getNameByNo(String paramName) {
		String paramNo ="";
		if (paramName.equals("ZROH")) {
			paramNo = "材料";
		} else if (paramName.equals("ZSTD")) {
			paramNo = "标准件";
		} else if (paramName.equals("ZCMC")) {
			paramNo = "零件";
		} else if (paramName.equals("ZSYS")) {
			paramNo = "机载系统/设备";
		} else {
			paramNo = "N/A";
		}
		return paramNo;
	}

	
	public static String getMaterialByNo(String paramName) {
		String materialNo ="";
		if (paramName.equals("2")) {
			materialNo = "新支线";
		} else if (paramName.equals("3")) {
			materialNo = "大客";
		} else if (paramName.equals("4")) {
			materialNo = "宽体";
		} else {
			materialNo = "N/A";
		}
		return materialNo;
	}
	
	
	public static String getInvoiceByStatus(String currentStatus) {
		String statusName = "";
		if (currentStatus.equals("2")) {
			statusName = "已发布";
		} else if (currentStatus.equals("3")) {
			statusName = "检验中";
		} else if (currentStatus.equals("4")) {
			statusName = "委托中";
		} else if (currentStatus.equals("5")) {
			statusName = "检验完成";
		} else if (currentStatus.equals("6")) {
			statusName = "归档";
		} else if (currentStatus.equals("8")) {
			statusName = "作废";
		}
		return statusName;
	}
}
